package me.leon

import org.junit.jupiter.api.Test

class LocalFileSubTest {
    @Test
    fun readLocal() {
        Parser.parseFromSub("$ROOT/V2RayN.txt")
            .joinToString("|") { it.toUri() }
            .also { println(it) }
    }

    @Test
    fun readLocal2() {
        Parser.parseFromSub("$ROOT/subs.txt")
            .joinToString("|") { it.toUri() }
            .also { println(it) }
    }

    @Test
    fun readLocal3() {
        Parser.parseFromSub("$ROOT/bihai.yaml")
            .joinToString("\n") { it.info() }
            .also { println(it) }
    }

    @Test
    fun readLocal4() {
        Parser.parseFromSub(NODE_OK)
            .filter { it.info().contains("http") }
            .joinToString("\n") { it.name }
            .also { println(it) }
    }

}